#!/usr/bin/env python3
# -*- coding: utf-8 -*-
# -------------------------------------------------------------------------------
# Name:         main.py
# Description:  直接运行入口，无需安装包
# Author:       xaoyaoo
# Date:         2023/10/14
# -------------------------------------------------------------------------------

import os
import sys

# 将项目根目录添加到 Python 路径中，这样可以直接运行而无需安装包
project_root = os.path.dirname(os.path.abspath(__file__))
wxdump_path = os.path.join(project_root, 'wxdump')

if wxdump_path not in sys.path:
    sys.path.insert(0, wxdump_path)
    sys.path.insert(0, project_root)

# 现在可以导入 wxdump 模块了
from wxdump.cli import console_run

def main():
    console_run()

if __name__ == "__main__":
    main()
